package com.xhtt.modules.inspection.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * inspection-巡检-排班管理-班组
 * 四班两倒/六班两倒
 * </p>
 *
 * @author xj
 * @since 2019-01-29
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class InsClassesTeam extends Model<InsClassesTeam> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    private Integer classId;

    /**
     * 早班ID
     */
    private Integer teamMorning;

    /**
     * 晚班ID
     */
    private LocalDateTime teamNight;

    /**
     * 备注
     */
    private String memo;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
